<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/Small_account_rules.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Small_account_rules.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '充值账户',
                    name: 'Small_account_rules',
                    url: "/Small_account_rules/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"balance_amount":"","presented_amount":"","recharge_amount":"","status":""},
                editFormOptions: [[{"title":"总金额","field":"balance_amount","type":"text"},
                               {"title":"赠送金额","field":"presented_amount","type":"text"}],
                              [{"title":"充值金额","field":"recharge_amount","type":"text"},
                               {"dataKey":"enable","data":[],"title":"充值状态","field":"status","type":"switch"}]],
                searchFormFields: {"balance_amount":"","presented_amount":"","recharge_amount":"","status":""},
                searchFormOptions: [[{"title":"总金额","field":"balance_amount","type":"like"},{"title":"赠送金额","field":"presented_amount","type":"like"}],[{"title":"充值金额","field":"recharge_amount","type":"like"},{"dataKey":"enable","data":[],"title":"充值状态","field":"status","type":"like"}]],
                columns: [{field:'balance_amount',title:'总金额',type:'decimal',width:90,align:'left',sortable:true},
                       {field:'code',title:'code',type:'string',width:90,align:'left'},
                       {field:'presented_amount',title:'赠送金额',type:'decimal',width:90,align:'left'},
                       {field:'recharge_amount',title:'充值金额',type:'decimal',width:90,align:'left'},
                       {field:'status',title:'充值状态',type:'string',bind:{ key:'enable',data:[]},width:90,align:'left'},
                      //  {field:'createID',title:'createID',type:'int',width:90,hidden:true,align:'left'},
                      //  {field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                      //  {field:'merchantCode',title:'merchantCode',type:'string',width:90,align:'left'},
                      //  {field:'merchantName',title:'merchantName',type:'string',width:90,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'creator',title:'创建人',type:'string',width:90,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'modifier',title:'修改人',type:'string',width:90,align:'left'},
                      //{field:'modifyID',title:'modifyID',type:'int',width:90,hidden:true,align:'left'},
                       ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
